package hk.edu.uic.hejing.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hejing
 * @since 2017-06-01
 */
@SuppressWarnings("serial")
public class Student extends Model<Student> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private String studentid;
	private String englishname;
	private String chinesename;
	private String gender;
	private String email;
	private String programme;
	private Integer studyyear;
	private Integer rubricid;
	private String classes;


	public Student(String studentid, String englishname, String chinesename, String gender, String email, String programme, Integer studyyear, Integer rubricid, String classes) {
		this.studentid = studentid;
		this.englishname = englishname;
		this.chinesename = chinesename;
		this.gender = gender;
		this.email = email;
		this.programme = programme;
		this.studyyear = studyyear;
		this.rubricid = rubricid;
		this.classes = classes;
	}

	public Student() {
	}

	@Override
	public String toString() {
		return "Student{" +
				"id=" + id +
				", studentid='" + studentid + '\'' +
				", englishname='" + englishname + '\'' +
				", chinesename='" + chinesename + '\'' +
				", gender='" + gender + '\'' +
				", email='" + email + '\'' +
				", programme='" + programme + '\'' +
				", studyyear=" + studyyear +
				", rubricid=" + rubricid +
				", classes=" + classes +
				'}';
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getStudentid() {
		return studentid;
	}

	public void setStudentid(String studentid) {
		this.studentid = studentid;
	}

	public String getEnglishname() {
		return englishname;
	}

	public void setEnglishname(String englishname) {
		this.englishname = englishname;
	}

	public String getChinesename() {
		return chinesename;
	}

	public void setChinesename(String chinesename) {
		this.chinesename = chinesename;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getProgramme() {
		return programme;
	}

	public void setProgramme(String programme) {
		this.programme = programme;
	}

	public Integer getStudyyear() {
		return studyyear;
	}

	public void setStudyyear(Integer studyyear) {
		this.studyyear = studyyear;
	}

	public Integer getRubricid() {
		return rubricid;
	}

	public void setRubricid(Integer rubricid) {
		this.rubricid = rubricid;
	}



	public String getClasses() {
		return classes;
	}

	public void setClasses(String classes) {
		this.classes = classes;
	}



	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
